package Day11Zuoye;

public class Control implements Function {
    private int heavy;
    private int range;
    private String color;
    public void show(){
        System.out.println("遥控器的重量:"+heavy+"克"+",无线范围:"+range+"米"+",颜色:"+color);
    }

    public Control(int heavy, int range, String color) {
        this.heavy = heavy;
        this.range = range;
        this.color = color;
    }

    public Control() {
    }

    public int getHeavy() {
        return heavy;
    }

    public void setHeavy(int heavy) {
        this.heavy = heavy;
    }

    public int getRange() {
        return range;
    }

    public void setRange(int range) {
        this.range = range;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    @Override
    public void start() {
        System.out.println("遥控器控制开机");
    }

    @Override
    public void close() {
        System.out.println("遥控器控制关机");
    }

    @Override
    public void change() {
        System.out.println("遥控器控制换台");
    }
}
